]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Always sync geometry after showing overview
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:25:47 +0000 (13:25 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:41:54 +0000 (13:41 +0200)
We don't always want to sync the geometry when entering the overview,
namely when the fade transition is used.

However we do want the correct geometry once we have entered the overview,
so that workspaces are at their place when switching from the app picker.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353

js/ui/workspacesView.js

index 0096b872b80b8b62a9be11d315b6d95168d7af05..82a0822bb4df864aa6a7673e58cae321b7776246 100644 (file)
@@ -381,6 +381,8 @@ class WorkspacesDisplay extends St.Widget {
         this._windowDragEndId =
             Main.overview.connect('window-drag-begin',
                 this._windowDragEnd.bind(this));
+        this._overviewShownId = Main.overview.connect('shown',
+            this._syncWorkspacesActualGeometry.bind(this));
 
         this._primaryIndex = Main.layoutManager.primaryIndex;
         this._workspacesViews = [];
@@ -433,6 +435,7 @@ class WorkspacesDisplay extends St.Widget {
         global.workspace_manager.disconnect(this._reorderWorkspacesdId);
         Main.overview.disconnect(this._windowDragBeginId);
         Main.overview.disconnect(this._windowDragEndId);
+        Main.overview.disconnect(this._overviewShownId);
     }
 
     _windowDragBegin() {